package com.ruoyi.coffee.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;

/**
 * 咖啡产品对象 cf_products
 *
 * @author dxj
 * @date 2024-12-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("cf_products")
public class Products extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 产品ID
     */
    @Excel(name = "产品ID")
    @TableId(value = "product_id", type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long productId;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /**
     * 产品描述
     */
    @Excel(name = "产品描述")
    private String description;

    /**
     * 产品价格，保留两位小数
     */
    @Excel(name = "产品价格，保留两位小数")
    private BigDecimal price;

    /**
     * 库存数量
     */
    @Excel(name = "库存数量")
    private Long stockQuantity;

    /**
     * 分类ID
     */
    @Excel(name = "分类ID")
    private Long categoryId;

    /**
     * 产品图片URL
     */
    @Excel(name = "产品图片URL")
    private String imageUrl;


}
